package com.xsdl.chain;

import com.xsdl.chain.verifier.LengthVerifier;
import com.xsdl.chain.verifier.MaxVerifier;
import com.xsdl.chain.verifier.MinVerifier;

public class Main {

    public static void main(String[] args) throws IllegalAccessException {
        User user = new User("zhan", 12);
        Checker validate = new Checker();
        validate.addValidator(new MaxVerifier());
        validate.addValidator(new MinVerifier());
        validate.addValidator(new LengthVerifier());
        validate.validate(user);
    }

}
